package com.bean;
/**
 * 供应商表实体类
 */

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Provider implements Serializable {
    /*主键*/
    private Integer id;
    /*供货商名称*/
    private String name;
    /*法人名字*/
    private String boss;
    /*法人电话*/
    private String phone;
    /*公司地址*/
    private String address;
    /*公司传真*/
    private String faxNum;
    /*公司成立日期*/
    private Date createDay;
    /*公司描述*/
    private String description;

    private List<Commodity> commodityList;


    public Provider() {
    }

    public Provider(Integer id) {
        this.id = id;
    }

    public Provider(String name, String boss, String phone, String address, String faxNum, Date createDay, String description) {
        this.name = name;
        this.boss = boss;
        this.phone = phone;
        this.address = address;
        this.faxNum = faxNum;
        this.createDay = createDay;
        this.description = description;
    }

    public Provider(Integer id, String name, String boss, String phone, String address, String faxNum, Date createDay, String description) {
        this.id = id;
        this.name = name;
        this.boss = boss;
        this.phone = phone;
        this.address = address;
        this.faxNum = faxNum;
        this.createDay = createDay;
        this.description = description;
    }

    @Override
    public String toString() {
        return "Provider{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", boss='" + boss + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", faxNum='" + faxNum + '\'' +
                ", createDay=" + createDay +
                ", description='" + description + '\'' +
                '}';
    }

    public List<Commodity> getCommodityList() {
        return commodityList;
    }

    public void setCommodityList(List<Commodity> commodityList) {
        this.commodityList = commodityList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBoss() {
        return boss;
    }

    public void setBoss(String boss) {
        this.boss = boss;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFaxNum() {
        return faxNum;
    }

    public void setFaxNum(String faxNum) {
        this.faxNum = faxNum;
    }

    public Date getCreateDay() {
        return createDay;
    }

    public void setCreateDay(Date createDay) {
        this.createDay = createDay;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
